<?php

/**
 * Created by PhpStorm.
 * User: d7
 * Date: 2016/1/28
 * Time: 10:42
 */
class Auth
{
    protected $auth;
    function __construct($library,$params=array()){
        $this->ci =& get_instance();
        if(empty($params)){
            $this->auth = $this->ci->load->library($library);
        }else{
            $this->auth = $this->ci->load->library($library,$params);
        }
    }
    function get_auth(){
        return $this->auth;
    }
}